<template>
  <div id="app">
    <nav>
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav>
    <transition name="fade">
       <router-view class="page"/>
    </transition>
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  position: relative;
}

nav {
  padding: 30px;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}
.page{
  position: absolute;
  top: 100px;
  left: 0;
  width: 100%;
  background: #fff;
}
.fade-enter{
  opacity: 0;
}
.fade-enter-active{
  transition: all 2s linear;
}
.fade-leave-to {
  transform: rotate(360deg) scale(0.1);
}
.fade-leave-active{
  transition: all 1s linear;
  z-index: 99;
}
</style>
